/**
 * @作者 钟诚
 * @日期 2011-7-25
 * @时间 上午09:47:23
 * @描述
 * @版本
 */
package my.db;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @作者 钟诚
 * @日期 2011-7-25
 * @时间 上午09:47:23
 * @描述 数据库运行时异常类
 * @版本 v1.0
 */
public class DBException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	private static final Log log=LogFactory.getLog(DBException.class);
	public DBException() {
		super();
	}

	public DBException(String msg) {
		super(msg);
		log.error(msg);
	}

	public DBException(String msg, Throwable e) {
		super(msg, e);
		log.error(msg,e);
	}

	public DBException(Throwable e) {
		super(e);
		log.error(this,e);
	}

}
